package fyf.com.carddesign.Dao;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 用户账户数据模型
 * Created by yxz on 2017/10/20.
 */
@Entity
public class User {
    @Id(autoincrement = true)
    private Long id;
    //用户名
    @Unique
    private String user_name;
    //密码
    private String password;
    //何种类型的用户0：admin 1：使用者
    private Byte type;
    @Generated(hash = 488553769)
    public User(Long id, String user_name, String password, Byte type) {
        this.id = id;
        this.user_name = user_name;
        this.password = password;
        this.type = type;
    }
    @Generated(hash = 586692638)
    public User() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getUser_name() {
        return this.user_name;
    }
    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }
    public String getPassword() {
        return this.password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public Byte getType() {
        return this.type;
    }
    public void setType(Byte type) {
        this.type = type;
    }
}
